package com.infocollect.project.grant.domain;

import com.infocollect.framework.aspectj.lang.annotation.Excel;
import com.infocollect.framework.web.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 科类维护对象 gr_families
 * 
 * @author infocollect
 * @date 2022-05-18
 */
public class GrFamilies extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 科类编码 */
    @Excel(name = "科类编码")
    private String familiesCode;

    /** 科类名称 */
    @Excel(name = "科类名称")
    private String familiesName;

    /** 科类备注 */
    @Excel(name = "科类备注")
    private String familiesRemark;

    /** 项目类型 */
    @Excel(name = "项目类型")
    private Long granttypeId;

    /** 部门 */
    @Excel(name = "部门")
    private Long departId;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createUser;

    /** 是否可用 */
    @Excel(name = "是否可用")
    private String isEnabled;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;
    /**项目信息，查询用 */
    private Long grantId;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFamiliesCode(String familiesCode) 
    {
        this.familiesCode = familiesCode;
    }

    public String getFamiliesCode() 
    {
        return familiesCode;
    }
    public void setFamiliesName(String familiesName) 
    {
        this.familiesName = familiesName;
    }

    public String getFamiliesName() 
    {
        return familiesName;
    }
    public void setFamiliesRemark(String familiesRemark) 
    {
        this.familiesRemark = familiesRemark;
    }

    public String getFamiliesRemark() 
    {
        return familiesRemark;
    }
    public void setGranttypeId(Long granttypeId) 
    {
        this.granttypeId = granttypeId;
    }

    public Long getGranttypeId() 
    {
        return granttypeId;
    }
    public void setDepartId(Long departId) 
    {
        this.departId = departId;
    }

    public Long getDepartId() 
    {
        return departId;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setIsEnabled(String isEnabled) 
    {
        this.isEnabled = isEnabled;
    }

    public String getIsEnabled() 
    {
        return isEnabled;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    public Long getGrantId() {
        return grantId;
    }

    public void setGrantId(Long grantId) {
        this.grantId = grantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("familiesCode", getFamiliesCode())
            .append("familiesName", getFamiliesName())
            .append("familiesRemark", getFamiliesRemark())
            .append("granttypeId", getGranttypeId())
            .append("departId", getDepartId())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("isEnabled", getIsEnabled())
            .append("sort", getSort())
            .toString();
    }
}
